<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script src="http://localhost:3999/static/checkPayment.js"></script>
    <title>支付页面</title>
</head>
<body>
    <h1>请用支付宝扫码支付</h1>
	<div id="product-info"></div>
	<div id="order-no"></div>
    <div id="qrcode-container"></div>
	<div id="password-container"></div>
	<img id="qrcode"/>
	<button id="check-payment-btn">检查支付状态</button>
    <script>
		displayProductInfo(1000);
		var orderNo = generateOrderNo(1000);
		document.getElementById('order-no').innerHTML = orderNo;
		document.getElementById('qrcode').src = "http://localhost:3999/place-order/" + orderNo;
        document.getElementById('check-payment-btn').addEventListener('click', () => {
            // 假设订单号存储在某个地方，这里直接使用一个示例订单号
            const orderNo = document.getElementById('order-no').innerText;
            displayPaymentStatus(orderNo);
        });
    </script>
</body>
</html>